
/** 用于 节点电价（实时-临时） 的对应账号的节点配置 */
const accountNodeInfo:Record<string, {nodeName:string, nodeId:string}> = {
  zzcn2023: {
    nodeName: '丰泽',
    nodeId: 'nodeid_115404740451370230'
  },
  a1257176370: {
    nodeName: '归昌',
    nodeId: 'nodeid_115404740451372728'
  },
  lzcn2024: {
    nodeName: '莱州',
    nodeId: 'nodeid_115404740451371695'
  },
  qysf4536: {
    nodeName: '福山',
    nodeId: 'nodeid_115404740451369616'
  },
  wfhtqhkxnyyxgs: {
    nodeName: '寒亭',
    nodeId: 'nodeid_115404740451369760'
  },
  zx2020: {
    nodeName: '招远',
    nodeId: 'nodeid_115404740451370332'
  }
}

/** 获取的对应账号的节点配置 */
export const getAccountNodeInfo = () => {
  const {nodeName = '', nodeId = ''} = accountNodeInfo?.[import.meta.env.VITE_APP_ACCOUNT] || {}
  
  if(!nodeName || !nodeId) console.error(`节点电价（实时-临时）getAccountNodeInfo 未配置对应账号的 节点名称、id`)

  return {nodeName, nodeId}
}